package com.toyota.toyotaownerspoc.main;

import java.util.ArrayList;

public class ListViewItemModelLoader {
	public static ArrayList<ListViewItem> Items;

    public static void LoadModel() {

        Items = new ArrayList<ListViewItem>();
        
        Items.add(new ListViewItem(1, "home_nearby", "nearby"));
        Items.add(new ListViewItem(2, "home_service", "service"));
        Items.add(new ListViewItem(3, "home_vehicle", "vehicle"));
        Items.add(new ListViewItem(4, "home_explore", "explore"));
    }

    public static ListViewItem GetbyId(int id){

        for(ListViewItem item : Items) {
            if (item.Id == id) {
                return item;
            }
        }
        return null;
    }


}